/**
 * 
 */
package com.xq.springboot.enums;

/**
 * 结果枚举类.包含成功和失败的结果说明.
 *
 * @author 郭凯强
 */
public enum ResultEnum {
	UNKONW_ERROR(-1, "未知错误"), 
	SUCCESS(0, "成功"), 
	PRIMARY_SCHOOL(100, "我猜你可能还在上小学"), 
	MIDDLE_SCHOOL(101, "你可能在上初中");

	private Integer errorCode;

	private String message;

	ResultEnum(Integer errorCode, String message) {
		this.errorCode = errorCode;
		this.message = message;
	}

	public Integer getErrorCode() {
		return errorCode;
	}

	public String getMessage() {
		return message;
	}

}
